From 9497598754c5a810974c6040e78c295ff0a4ed6f Mon Sep 17 00:00:00 2001 From: real-zephex Date: Wed, 29 May 2024 01:00:42 +0530 Subject: =?UTF-8?q?=E2=9C=A8=20feat(series):=20rewrite=20series=20page=20a?= =?UTF-8?q?nd=20drop=20manga=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/web-series/[id]/page.jsx | 144 +++++++++++++-------------------------- 1 file changed, 48 insertions(+), 96 deletions(-) (limited to 'src/app/web-series/[id]') diff --git a/src/app/web-series/[id]/page.jsx b/src/app/web-series/[id]/page.jsx index 3d36883..06902b1 100644 --- a/src/app/web-series/[id]/page.jsx +++ b/src/app/web-series/[id]/page.jsx @@ -1,111 +1,63 @@ -import Image from "next/image"; -import { SERIES_INFO, CREW_DETAILS } from "../components/data-fetch"; -import styles from "../styles/info.module.css"; -import { BiSolidUpvote } from "react-icons/bi"; -import { LiaStarSolid } from "react-icons/lia"; -import SeriesPlayer from "../components/videoPlayer"; +import { Image, Chip } from "@nextui-org/react"; + +import { SERIES_INFO } from "../components/data-fetch"; +import Questions from "@/app/movies/components/faqs"; +import SeriesDescriptionTabs from "../components/descriptionTabs"; +import SeriesVideoPlayer from "../components/videoPlayer"; const SeriesInfoPage = async ({ params }) => { - const id = params.id; - const data = await FetchSeriesInfo(id); - const crew_data = await CREW_DETAILS(id); + const { id } = params; + + const data = await SERIES_INFO(id); + return ( -
-
-
-
+
+
+ +
Series Poster -
-

{data.name}

-

- {data.original_name} -

-

- {data.tagline || "not found"} -

-

- {" "} - {data.overview} -

-
-

- Genres:{" "} - {data.genres.map((item, index) => ( - - {item.name} - {index !== data.genres.length - 1 && - ", "} - - ))} -

-

- Seasons: {data.number_of_seasons} -

-

- Episodes: {data.number_of_episodes} -

-
-
- {" "} -

{data.vote_count}

-
-
- {" "} -

{data.vote_average}

-
+ width={180} + height={300} + alt="Anime Title Poster" + className="m-2" + > +
+

+ {data.name} +

+
+ {data.genres && + data.genres.map((item, index) => ( + +

+ {item.name} +

+
+ ))}
-
-
-
-

Crew

-
- {crew_data && - crew_data.cast.map((item, index) => ( -
- Crew Poster -

{item.name}

-

- {item.character} -

-
- ))}
-
- -
- -
+
+ +
-
-
+ + ); }; -const FetchSeriesInfo = async (id) => { - const data = SERIES_INFO(id); - return data; -}; - export default SeriesInfoPage; -- cgit v1.2.3